<?php

namespace XWAM\Addon\POrgSystem\Controller;

/**
 * Description of SiteConfigController
 *
 * @since 1.0 <2015-10-20> SoChishun <14507247@qq.com> Added.
 */
class SiteConfigController extends \XWAM\Controller\AppbaseController {

    public function site_config() {
        $configs=AddonD('Config')->get_list();
        $this->assign('configs',$configs);
        $this->display();
    }

    public function site_config_save() {
        $result = AddonD('Config')->save_configs();
        $this->success('保存成功');
    }

}
